package com.mcxx.modules.miniSalvation.family.dao.write;


import com.mcxx.modules.miniSalvation.family.entity.FamilyMainHistoryEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FamilyMainHistoryWriteDao {


	int insertIgnoreNull(FamilyMainHistoryEntity familyMainHistory);


	int update(FamilyMainHistoryEntity familyMainHistory);


	int updateIgnoreNull(FamilyMainHistoryEntity familyMainHistory);


	int delete(FamilyMainHistoryEntity familyMainHistory);


	int deleteByOrderId(String orderId);


    int updateSalvationNo(String familyId, String salvationNo, String userName);


	int copyHistoryRecordByOrderId(String oldOrderId, String newOrderId);


	int batchDeleteByOrderId(List<String> orderIdList);


	int updateMemberName(@Param("name")String name, @Param("orderId")String orderId, @Param("familyId")String familyId);

	int updateLowerStatus(@Param("familyId") String familyId,@Param("status") String status);
}
